package com.lf.api.weixin.entity;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 
 * Description: 通过网页授权获取的用户信息
 * Copyright: Copyright (c)2012
 * Company: 小小书童
 * @author: 小小书童
 * @version: 1.0
 * Create at: 2016年10月6日 上午10:35:00
 *
 * Modification History:
 * Date Author Version Description
 * ---------------------------修改历史---------------------------------------
 * 2016年10月6日 小小书童 1.0
 */
public class SNSUserInfo extends ResultCode{
    // 用户标识
	@JsonProperty(defaultValue="", value="openid")
    private String openId;
    // 用户昵称
    private String nickname;
    // 性别（1是男性，2是女性，0是未知）
    private int sex;
    // 国家
    private String country;
    // 省份
    private String province;
    // 城市
    private String city;
    //语言
    private String language;
    // 用户头像链接
    @JsonProperty(defaultValue="", value="headimgurl")
    private String headImgUrl;
    // 用户特权信息
    @JsonProperty(defaultValue="", value="privilege")
    private List<String> privilegeList;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public List<String> getPrivilegeList() {
        return privilegeList;
    }

    public void setPrivilegeList(List<String> privilegeList) {
        this.privilegeList = privilegeList;
    }

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	@Override
	public String toString() {
		return "SNSUserInfo [openId=" + openId + ", nickname=" + nickname + ", sex=" + sex + ", country=" + country
				+ ", province=" + province + ", city=" + city + ", language=" + language + ", headImgUrl=" + headImgUrl
				+ ", privilegeList=" + privilegeList + ", getErrorCode()=" + getErrorCode() + ", getErrorMsg()="
				+ getErrorMsg() + "]";
	}

    
}